<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图书后台管理系统</title>
    <!-- 引入Layui第三方库的css资源 -->
    <link rel="stylesheet" href="assets/lib/layui/css/layui.css">
    <!-- 引入自定义css样式 -->
    <link rel="stylesheet" href="assets/css/login.css">
</head>

<body>
    <div class="layui-main">
        <img src="assets/images/logo.png" alt="">
    </div>
    <div class="loginAndRegBox">
        <div class="title">
            <img src="assets/images/login_title.png" alt="">
        </div>
        <!-- 登录 -->
        <div class="login-box">
            <form action="" id="link_login" class="layui-form">
                <div class="uname">
                    <i class="layui-icon layui-icon-username" style="font-size: 20px; color: black;"></i>
                    <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名"
                        autocomplete="off" class="layui-input">
                </div>
                <div class="pwd">
                    <i class="layui-icon layui-icon-password" style="font-size: 20px; color: black;"></i>
                    <input type="password" name="password" required lay-verify="required|pwd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <button id="login_btn" lay-submit class="layui-btn layui-btn-normal layui-btn-fluid">登录</button>
                <a class="totle-user" href="javascript:;" id="toReg">去注册账号</a>
            </form>
        </div>
        <!-- 注册 -->
        <div class="reg-box">
            <form action="" id="link_reg" class="layui-form">
                <div class="uname">
                    <i class="layui-icon layui-icon-username" style="font-size: 20px; color: black;"></i>
                    <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名"
                        autocomplete="off" class="layui-input">
                </div>
                <div class="pwd">
                    <i class="layui-icon layui-icon-password" style="font-size: 20px; color: black;"></i>
                    <input type="password" name="password" required lay-verify="required|pwd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <div class="pwd">
                    <i class="layui-icon layui-icon-password" style="font-size: 20px; color: black;"></i>
                    <input type="password" required lay-verify="required|pwd|repwd" placeholder="再次确认密码"
                        autocomplete="off" class="layui-input">
                </div>
                <button id="reg_btn" lay-submit class="layui-btn layui-btn-normal layui-btn-fluid">注册</button>
                <a class="totle-user" href="javascript:;" id="tologin">去登录</a>
            </form>
        </div>
    </div>

    <!-- 引入Layui表单验证JS文件 -->
    <script src="assets/lib/layui/layui.all.js"></script>
    <!-- 引入Jquey文件 -->
    <script src="assets/lib/jquery.min.js"></script>
    <!-- 引入baseAPI拼接ajax请求url的文件 -->
    <script src="assets/js/baseAPI.js"></script>
    <!-- 引入自定义JS文件 -->
    <script src="assets/js/login.js"></script>

</body>

</html>